﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Threading.Tasks;
using VOL.Core.Filters;
using VOL.Core.Utilities;
using VOL.SmartMecial.IServices.HealthEducation;


namespace VOL.WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class BroadLogController : ControllerBase
    {
        private readonly IBroadManageService _broadMangeService;

        public BroadLogController(IBroadManageService broadMangeService)
        {
            this._broadMangeService = broadMangeService;
        }


        [ApiTask]
        [HttpGet,HttpPost]
        public IActionResult Test()
        {
            var data = _broadMangeService.GetBroadManageList();
            var json = JsonConvert.SerializeObject(data);
            return Ok(json);
        }


    }
}
